home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / software / radiance / ez3d / unix / sun / install < prev    next >
Text File  |  1996-09-21  |  693b  |  38 lines

  1. #!/bin/sh
  2.  
  3. # Motif library is not there in default Sun systems
  4. # So copy libXm.so.3 to /usr/lib if not there
  5.  
  6. if [ ! -r /usr/lib/libXm.so.3 ]; then
  7.  
  8.    id | grep root > /dev/null 2>&1
  9.    if [ "$?" != "0" ]; then
  10.        echo You must be root. Please enter root password...
  11.        su root $0
  12.        exit 0
  13.    fi
  14.    LIBTAR=libxm.tar
  15.    if [ ! -r $LIBTAR ]; then
  16.       LIBTAR=LIBXM.TAR
  17.    fi
  18.    tar xf $LIBTAR 
  19.    CREATED_LIBXM=1
  20. fi
  21. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/dt/lib:/usr/openwin/lib:/usr/lib
  22.  
  23. # Invoke graphical installation program
  24.  
  25. INST=ez3di
  26. if [ ! -r $INST ]; then
  27.     INST=EZ3DI
  28. fi
  29.  
  30. ./$INST -cdrom
  31.  
  32. # Cleanup
  33.  
  34. if [ "$CREATED_LIBXM" = "1" ]; then
  35.     rm -f /usr/lib/libXm.so.3
  36. fi
  37.  
  38.